﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Xman.Dashboard.Log
{
    public class LogDto
    {
        public int Index { get; set; }
        public string WriteTime { get; set; }
        public string Level { get; set; }
        public string ActivityId { get; set; }
        public string CallSite { get; set; }
        public string Message { get; set; }
    }

    public class LogModelInput
    {
        public string WriteDateHour { get; set; }
        public string WriteDate => WriteDateHour.Split("_")[0];
        public string Keywords { get; set; }
        public string FilePath => $@"{AppDomain.CurrentDomain.BaseDirectory}logs\{WriteDate.Replace("-", "")}\{WriteDateHour}.log";
    }
}
